package com.xiaoshuidi.cloud.module.report.dal.mapper.report;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xiaoshuidi.cloud.framework.mybatis.core.mapper.BaseMapperX;
import com.xiaoshuidi.cloud.module.report.dal.DO.report.ReportContractDayRentDO;
import com.xiaoshuidi.cloud.module.report.dal.DO.report.ReportContractRoomDepositDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;

@Mapper
@InterceptorIgnore(tenantLine = "true")
public interface ReportContractRoomDepositMapper extends BaseMapperX<ReportContractRoomDepositDO> {

    /**
     * 批量写入数据
     *
     * @param startTime
     * @param endTime
     */
    void insertBathByTime(@Param("startTime") LocalDateTime startTime, @Param("endTime") LocalDateTime endTime);

    Page<ReportContractRoomDepositDO> selectPageListByTime(Page<ReportContractRoomDepositDO> page,
                                                           @Param("startTime") LocalDateTime startTime, @Param(
                                                                   "endTime") LocalDateTime endTime);
}
